<%@page import="com.wef.demo.entity.domain.ClazzDomain"%>
<%@page import="com.gfa4j.resource.ResourceManagerServer"%>
<%@page import="com.wef.common.util.CommonMessageDomain"%>
<%@page import="com.gfa4j.query.Field"%>
<%@ include file="/pages/common/taglib.jsp"%>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
		<title></title>
		<%@include file="/styles/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/css_lib.jsp"%>
		
		<%@include file="/pages/common/js_global.jsp"%>
		<%@include file="/scripts/sdk/js_lib.jsp"%>
		<%@include file="/scripts/config/js_lib.jsp" %>
		<%@include file="/scripts/utils/js_lib.jsp"%>
		<%@include file="/scripts/i18n/js_lib.jsp"%>
		<%@include file="/scripts/format/js_lib.jsp"%>
		<%@include file="/scripts/validate/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/js_lib.jsp"%>
		<%@include file="/scripts/widgets/page-custom/js_lib.jsp"%>
		
		<k:jqgrid
			queryObjectName="<%=ClazzDomain.Clazz%>"
		 	jsonReader="{id:'clazzId'}"
		 	colModel="[{name:'clazzId',hidden:true},
		 		{actionType:'delete',name:'delete'},
		 		{actionType:'edit',name:'edit',actionUrl:'/pages/demo/multi-table/demo_tab_load2_edit.jsp',tabTitle:'班级信息编辑',tabId:'demo_tab_load_edit'},
		 		{label:'demo.Clazz.clazzName',name:'clazzName'},
		 		{label:'demo.Clazz.count',name:'count'},
		 		{label:'demo.Clazz.clazzNum',name:'clazzNum'},
		 		{label:'demo.Clazz.lesder',name:'lesder'},
		 		{label:'demo.Clazz.fee',name:'fee'}]"
			id="tableClazz"
		 	searchFormName="searchFormClazz"
		 	searchBtnId="searchBtnClazz"
		 	clearBtnId="clearBtnClazz"
		 	newBtnId="newBtnClazz"
		 	cancelBtnId="cancelBtnClazz"
		 	deleteBtnId="deleteBtnClazz"
		 	editFormName="editFormClazz"
		 	serviceMethodName="saveOrUpdateClazzs"
		 	serviceName="ClazzService"
		 	height="300"
		 	/>
		
		<script type="text/javascript">
			//App.pageCustomEnable = true;App.pageId = "jqgrid";
			$(window).ready(function(){
				$('div[accordion=true]').accordion({collapsible : true});
				$('div[tabGroup=true]').tabs();
				$('#pageLoadComplete').attr('isComplete',true);
			});
		</script>
	</head>
<body class="body">
	<div id="divAccordion1" accordion="true">                             
		<h1><a href="#"><%=ResourceManagerServer.getInstance().getMessage(ClazzDomain.ClazzNLS)%>&nbsp;<%=ResourceManagerServer.getInstance().getMessage(CommonMessageDomain.TITLE_SERACH)%></a></h1>
		<div>
			<form id="searchFormClazz" name="searchFormClazz">
				<ul id="searchUlClazz" allowChange="true" class="search_box">
					<li>
						<k:label text="demo.Clazz.clazzName"/>
						<k:text property="clazzName" styleClass="text" styleId="searchClazzName" condition="<%=Field.CONDITION_LIKE_ANYWHERE_IC%>"/>
					</li>
					<li>
						<k:label text="demo.Clazz.count"/>
						<k:text property="count" styleClass="text" styleId="searchCount" condition="<%=Field.CONDITION_EQ%>"/>
					</li>
					<li>
						<k:label text="demo.Clazz.clazzNum"/>
						<k:text property="clazzNum" styleClass="text" styleId="searchClazzNum" condition="<%=Field.CONDITION_LIKE_ANYWHERE_IC%>"/>
					</li>
					<li>
						<k:label text="demo.Clazz.lesder"/>
						<k:text property="lesder" styleClass="text" styleId="searchLesder" condition="<%=Field.CONDITION_LIKE_ANYWHERE_IC%>"/>
					</li>
					<li>
						<k:label text="demo.Clazz.fee"/>
						<k:text property="fee" styleClass="text" styleId="searchFee" condition="<%=Field.CONDITION_EQ%>"/>
					</li>
				</ul>
			</form>
		</div>
	</div>
	
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="searchBtnClazz" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" text="<%=CommonMessageDomain.BUTTON_SEARCH%>"/>
			</li>
			<li>
				<k:button styleId="clearBtnClazz" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" text="<%=CommonMessageDomain.BUTTON_CLEAR%>"/>
				</li>
			<li>
				<k:button styleId="newBtnClazz" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" text="<%=CommonMessageDomain.BUTTON_NEW%>"/>
			</li>
			<li>
				<k:button styleId="deleteBtnClazz" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" text="<%=CommonMessageDomain.BUTTON_DELETE%>"/>
			</li>
		</ul>
	</div>
	
	<div id="divAccordion2" accordion="true">
		<h1><a href="#"><%=ResourceManagerServer.getInstance().getMessage(ClazzDomain.ClazzNLS)%>&nbsp;<%=ResourceManagerServer.getInstance().getMessage(CommonMessageDomain.TITLE_TABLE)%></a></h1>
		<div>
			<table id="tableClazz"></table>
		</div>
	</div>
	<div id="pageLoadComplete" isComplete="false" style="display: none;"></div>
</body>
</html>